package com.treasure.common.types;

import com.treasure.common.exception.ParameterException;
import lombok.Getter;

import java.util.Objects;

/**
 * @author sunhongmin
 * @date 2023/9/6 22:56
 * @description
 */
@Getter
public class InteractionId {
    private final Integer value;

    public InteractionId(Integer value) {
        if (Objects.isNull(value)) {
            throw new ParameterException("交互ID不能为空");
        }
        this.value = value;
    }
}
